﻿# common variables
@coa_width = 768
@coa_height = 512
@canton_scale_cross_x = @[ ( 333 / coa_width ) + 0.001 ]
@canton_scale_cross_y = @[ ( 205 / coa_height ) + 0.001 ]
@canton_scale_sweden_x = @[ ( 255 / coa_width ) + 0.001 ]
@canton_scale_sweden_y = @[ ( 204 / coa_height ) + 0.001 ]
@canton_scale_norway_x = @[ ( 192 / coa_width ) + 0.001 ]
@canton_scale_norway_y = @[ ( 192 / coa_height ) + 0.001 ]
@canton_scale_denmark_x = @[ ( 220 / coa_width ) + 0.001 ]
@canton_scale_denmark_y = @[ ( 220 / coa_height ) + 0.001 ]
@third = @[1/3]


NEA = { #Nouvelle Alasce
	flag_definition = {
		coa = NEA
		subject_canton = NEA
		priority = 1
	}
	flag_definition = {	
		coa = NEA_monarchy	
		subject_canton = NEA_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = NEA_subject	
		priority = 1500	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = NEA_theocracy	
		subject_canton = NEA_theocracy
		allow_overlord_canton = yes		
		coa_with_overlord_canton = NEA_subject	
		priority = 20	
		trigger = { 	
			coa_def_theocracy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = NEA_fascist
		subject_canton = NEA_fascist
		allow_overlord_canton = yes		
		coa_with_overlord_canton = NEA_subject	
		priority = 1500	
		trigger = { 	
			coa_def_fascist_flag_trigger = yes	
			coa_def_dictatorship_flag_trigger = yes
		}	
	}
	flag_definition = {
		coa = NEA_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = NEA_subject
		priority = 30
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}
	flag_definition = {
		coa = NEA_subject_BRG
		priority = 100
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
}

}

ODO = { #Odonia
	flag_definition = {
		coa = ODO
		subject_canton = ODO
		priority = 1
	}
	flag_definition = {	
		coa = ODO_monarchy	
		subject_canton = ODO_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ODO_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = ODO_theocracy	
		subject_canton = ODO_theocracy
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ODO_subject	
		priority = 20	
		trigger = { 	
			coa_def_theocracy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = ODO_fascist
		subject_canton = ODO_fascist
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ODO_subject	
		priority = 1500	
		trigger = { 	
			coa_def_fascist_flag_trigger = yes	
			coa_def_dictatorship_flag_trigger = yes
		}	
	}
	flag_definition = {
		coa = ODO_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ODO_subject
		priority = 30
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}
}

ATL = { #Atlantia
	flag_definition = {
		coa = ATL
		subject_canton = ATL
		priority = 1
	}
	flag_definition = {	
		coa = ATL_monarchy	
		subject_canton = ATL_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ATL_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = ATL_theocracy	
		subject_canton = ATL_theocracy
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ATL_subject	
		priority = 20	
		trigger = { 	
			coa_def_theocracy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = ATL_fascist
		subject_canton = ATL_fascist
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ATL_subject	
		priority = 1500	
		trigger = { 	
			coa_def_fascist_flag_trigger = yes	
			coa_def_dictatorship_flag_trigger = yes
		}	
	}
	flag_definition = {
		coa = ATL_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ATL_subject_SPA
		priority = 30
		trigger = { 
			coa_def_spanish_ensign_trigger = yes
		}
	}
}

AMA = { #Amazonie
	flag_definition = {
		coa = AMA
		subject_canton = AMA
		priority = 1
	}
}

LOT = { #Lotharingia
	flag_definition = {
		coa = LOT
		subject_canton = LOT
		allow_overlord_canton = yes	
		priority = 1
	}
	flag_definition = {	
		coa = LOT_dictatorship
		subject_canton = LOT_dictatorship
		allow_overlord_canton = yes		
		coa_with_overlord_canton = LOT_subject	
		priority = 20	
		trigger = { 	
			coa_def_dictatorship_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = LOT_republic	
		subject_canton = LOT_republic	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = LOT_subject	
		priority = 20	
		trigger = { 	
			coa_def_republic_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = LOT_monarchy	
		subject_canton = LOT_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = LOT_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = LOT_theocracy	
		subject_canton = LOT_theocracy
		allow_overlord_canton = yes		
		coa_with_overlord_canton = LOT_subject	
		priority = 20	
		trigger = { 	
			coa_def_theocracy_flag_trigger = yes	
		}	
	}
	flag_definition = {	
		coa = LOT_communist
		subject_canton = LOT_communist
		allow_overlord_canton = yes		
		coa_with_overlord_canton = LOT_communist	
		priority = 1500	
		trigger = { 	
			coa_def_communist_flag_trigger = yes	
			
		}	
	}
	flag_definition = {	
		coa = LOT_dictatorship
		subject_canton = LOT_fascist
		allow_overlord_canton = yes		
		coa_with_overlord_canton = LOT_subject	
		priority = 1500	
		trigger = { 	
			coa_def_fascist_flag_trigger = yes	
			coa_def_dictatorship_flag_trigger = yes
		}	
	}
	
	flag_definition = {
		coa = LOT_subject_GBR
		allow_overlord_canton = yes		
		priority = 50
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}
	
}

AME = { #Ameriga
	flag_definition = {
		coa = AME
		subject_canton = AME
		priority = 1
	}
}

BEO = { #Beornia
	flag_definition = {
		coa = BEO
		subject_canton = BEO
		priority = 1
	}
}

HBE = { #Holy Britannian Empire
	flag_definition = {
		coa = HBE
		subject_canton = HBE
		priority = 1
	}
}

BLC = { #Belgium
	flag_definition = {
		coa = BLC
		subject_canton = sub_BLC_subject
		allow_overlord_canton = yes	
		coa_with_overlord_canton = BLC_colony
		overlord_canton_scale = { @canton_scale_sweden_x @canton_scale_sweden_y }
		priority = 1
	}
	flag_definition = {
		coa = BLC_monarchy
		subject_canton = sub_BLC_subject
		allow_overlord_canton = yes	
		coa_with_overlord_canton = BLC_colony
		overlord_canton_scale = { @canton_scale_sweden_x @canton_scale_sweden_y }
		priority = 20
		trigger = { 
			OR = {
				coa_def_monarchy_flag_trigger = yes
				coa_def_theocracy_flag_trigger = yes
			}
		}
	}
	flag_definition = {
		coa = BLC_communist
		subject_canton = sub_BLC_subject_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = BLC_fascist
		subject_canton = sub_BLC_subject
		priority = 1500
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

PLA = { #Plantagenia
	flag_definition = {
		coa = PLA
		subject_canton = PLA
		priority = 1
	}
	flag_definition = {
		coa = PLA_republic
		subject_canton = PLA_republic
		priority = 20
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = PLA_dictatorship
		subject_canton = PLA_republic
		priority = 50
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = PLA_communist
		subject_canton = PLA_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = PLA_fascist
		subject_canton = PLA_fascist
		priority = 1500
		trigger = {
			coa_def_fascist_flag_trigger = yes
		}
	}
}

VIN = { #Vinland
	flag_definition = {
		coa = VIN
		subject_canton = VIN
		allow_overlord_canton = yes	
		coa_with_overlord_canton = VIN_subject
		priority = 1
	}
	flag_definition = {
		coa = VIN_monarchy
		subject_canton = VIN_monarchy
		allow_overlord_canton = yes	
		coa_with_overlord_canton = VIN_subject
		priority = 20
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = VIN_dictatorship
		subject_canton = VIN_dictatorship
		allow_overlord_canton = yes	
		coa_with_overlord_canton = VIN_subject
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = VIN_communist
		subject_canton = VIN_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = VIN_fascist
		subject_canton = VIN_fascist
		priority = 1500
		trigger = {
			coa_def_fascist_flag_trigger = yes
		}
	}
}

ARC = { #Arcadia
	flag_definition = {
		coa = ARC
		subject_canton = ARC
		priority = 1
	}
}

QIN = { #Qingqiu
	flag_definition = {
		coa = QIN
		subject_canton = QIN
		priority = 1
	}
	flag_definition = {
		coa = QIN_republic
		subject_canton = QIN_republic
		priority = 5
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = QIN_communist
		subject_canton = QIN_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = QIN_fascist
		subject_canton = QIN_fascist
		priority = 1500
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
}

KKN = { #Kita Kaigan
	flag_definition = {
		coa = KKN
		subject_canton = KKN
		allow_overlord_canton = yes	
		coa_with_overlord_canton = KKN_subject
		priority = 1
	}
	flag_definition = {
		coa = KKN_republic
		subject_canton = KKN_republic
		allow_overlord_canton = yes	
		coa_with_overlord_canton = KKN_subject
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = KKN_communist
		subject_canton = KKN_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = KKN_fascist
		subject_canton = KKN_fascist
		priority = 1500
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = KKN_raising_sun
		subject_canton = KKN_raising_sun
		priority = 1500
		trigger = {
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = KKN_subject_JAP
		subject_canton = KKN_subject_JAP
		priority = 50
		trigger = { 
			coa_def_japanese_ensign_trigger = yes
		}
	}
}

ATH = { #Athesia
	flag_definition = {
		coa = ATH
		subject_canton = ATH
		priority = 1
	}
}

SFJ = { #Sydoe
	flag_definition = {
		coa = SFJ
		subject_canton = SFJ
		priority = 1
	}
	flag_definition = {
		coa = SFJ_scandinavia
		allow_overlord_canton = no		
		priority = 50
		trigger = { 
			coa_def_scandinavian_subject_trigger = yes
		}
	}
}

DUA = { #Dual Monarchy
	flag_definition = {
		coa = DUA
		subject_canton = DUA
		priority = 1
	}
	flag_definition = {
		coa = DUA_republic
		subject_canton = DUA_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = DUA_france
		subject_canton = DUA_france
		allow_overlord_canton = yes
		coa_with_overlord_canton = DUA_france		
		priority = 100		
		trigger = { 
			scope:actor = { country_has_primary_culture = cu:french }
			coa_def_controls_part_of_france = yes
			coa_def_controls_part_of_england = no
		}
	}
	flag_definition = {
		coa = FRA_republic
		subject_canton = FRA_republic
		allow_overlord_canton = yes		
		overlord_canton_scale = { 0.337 0.337 }			
		priority = 200
		trigger = {
			scope:actor = { country_has_primary_culture = cu:french }
			coa_def_controls_part_of_france = yes
			coa_def_controls_part_of_england = no
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = DUA_britannie
		subject_canton = DUA_britannie
		allow_overlord_canton = yes
		coa_with_overlord_canton = DUA_britannie		
		priority = 100		
		trigger = {
			coa_def_controls_part_of_france = no
			coa_def_controls_part_of_england = yes
		}
	}
	flag_definition = {
		coa = DUA_britannie_republic
		subject_canton = DUA_britannie_republic
		allow_overlord_canton = yes
		coa_with_overlord_canton = DUA_britannie_republic		
		priority = 200		
		trigger = {
			coa_def_controls_part_of_france = no
			coa_def_controls_part_of_england = yes
			coa_def_republic_flag_trigger = yes
		}
	}
}

BRG = { #Burgundy
	flag_definition = {
		coa = BRG
		subject_canton = BRG
		priority = 1
	}
	flag_definition = {
		coa = BRG_republic
		subject_canton = BRG_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

ARN = { #Aragon
	flag_definition = {
		coa = CAT
		coa_with_overlord_canton = CAT
		allow_overlord_canton = yes
		overlord_canton_scale = { 0.5 @[1/9*4] }
	}
	flag_definition = {
		coa = CAT_coa
		priority = 10
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = CAT_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ARN_republic
		coa_with_overlord_canton = CAT
		allow_overlord_canton = yes
		overlord_canton_scale = { 0.5 @[1/9*4] }
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

PRO = { #Provence
	flag_definition = {
		coa = PRO
		coa_with_overlord_canton = PRO
	}
	flag_definition = {
		coa = PRO_republic
		coa_with_overlord_canton = PRO_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

FRR = { #Ferrara
	flag_definition = {
		coa = FRR
		coa_with_overlord_canton = FRR
	}
	flag_definition = {
		coa = FRR_republic
		coa_with_overlord_canton = FRR_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

MCD = { #Macedonia
	flag_definition = {
		coa = MCD
		coa_with_overlord_canton = MCD
	}
	flag_definition = {
		coa = MCD_republic
		coa_with_overlord_canton = MCD_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

PSK = { #Pskov
	flag_definition = {
		coa = PSK
		coa_with_overlord_canton = PSK
	}
}

RTH = { #Ruthenia 
	flag_definition = {
		coa = RTH
		coa_with_overlord_canton = RTH
	}
}

CRL = { #Courland
	flag_definition = {
		coa = CRL
		coa_with_overlord_canton = CRL
	}
	flag_definition = {
		coa = CRL_absolute_monarchy
		coa_with_overlord_canton = CRL_absolute_monarchy
		priority = 10
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
}

SLZ = { #Salzburg
	flag_definition = {
		coa = SLZ
		coa_with_overlord_canton = SLZ
	}
}

TYR = { #Tyrol
	flag_definition = {
		coa = TYR
		coa_with_overlord_canton = TYR
	}
}

NOV = { #Novgorod
	flag_definition = {
		coa = NOV
		coa_with_overlord_canton = NOV
	}
	flag_definition = {
		coa = NOV_absolute_monarchy
		subject_canton = NOV 
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = NOV
		subject_canton = NOV
		priority = 100
		trigger = { 
			exists = scope:actor
			scope:actor = { 
				has_law = law_type:law_presidential_republic 
			}
		}
	}
	flag_definition = {
		coa = NOV_republic
		subject_canton = NOV_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

BLO = {
	flag_definition = {
		coa = BLO
		coa_with_overlord_canton = BLO
	}
	flag_definition = {
		coa = BLO_absolute_monarchy
		subject_canton = BLO 
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = BLO_republic
		subject_canton = BLO_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

UGG = {
	flag_definition = {
		coa = UGG
		coa_with_overlord_canton = UGG
	}
	flag_definition = {
		coa = UGG_absolute_monarchy
		subject_canton = UGG 
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = UGG_republic
		subject_canton = UGG_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

VYA = {
	flag_definition = {
		coa = VYA
		coa_with_overlord_canton = VYA
	}
	flag_definition = {
		coa = VYA_absolute_monarchy
		subject_canton = VYA 
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = VYA_republic
		subject_canton = VYA_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

UDM = {
	flag_definition = {
		coa = UDM
		coa_with_overlord_canton = UDM
	}
	flag_definition = {
		coa = UDM_republic
		subject_canton = UDM_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

PRM = {
	flag_definition = {
		coa = PRM
		coa_with_overlord_canton = PRM
	}
	flag_definition = {
		coa = PRM_republic
		subject_canton = PRM_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

MUS = { #Rus
	flag_definition = {
		coa = MUS
		coa_with_overlord_canton = MUS
	}
	flag_definition = {
		coa = MUS_absolute_monarchy
		subject_canton = MUS 
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = MUS_republic
		subject_canton = MUS_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	
}

SMO = { #Smolensk
	flag_definition = {
		coa = SMO
		coa_with_overlord_canton = SMO
	}
	flag_definition = {
		coa = SMO_monarchy
		subject_canton = SMO 
		priority = 20
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = SMO_republic
		subject_canton = SMO_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	
}

MSO = { #Moscow
	flag_definition = {
		coa = MSO
		coa_with_overlord_canton = MSO
	}
}

TVE = { #Yaroslavl
	flag_definition = {
		coa = TVE
		coa_with_overlord_canton = TVE
	}
	flag_definition = {
		coa = TVE_absolute_monarch
		subject_canton = TVE
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
}

NZH = { #Nizhny Novgorod
	flag_definition = {
		coa = NZH
		coa_with_overlord_canton = NZH
	}
	flag_definition = {
		coa = NZH_absolute_monarch
		subject_canton = NZH
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
}

RYA = { #Ryazan
	flag_definition = {
		coa = RYA
		coa_with_overlord_canton = RYA
	}
	flag_definition = {
		coa = RYA_absolute_monarch
		subject_canton = RYA
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
}

BEG = { #Berg
	flag_definition = {
		coa = BEG
		coa_with_overlord_canton = BEG
	}
}

DAR = { #Hesse-Darmstadt
	flag_definition = {
		coa = DAR
		coa_with_overlord_canton = DAR
	}
}

EFR = { #East Frisia
	flag_definition = {
		coa = EFR
		coa_with_overlord_canton = EFR
	}
}

MUN = { #Munster
	flag_definition = {
		coa = MUN
		coa_with_overlord_canton = MUN
	}
	flag_definition = {
		coa = MUN_theocracy
		subject_canton = MUN_theocracy
		priority = 10
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
}

LIV = { #Livonia
	flag_definition = {
		coa = LIV
		coa_with_overlord_canton = LIV
	}
	flag_definition = {	
		coa = LIV_communist	
		subject_canton = LIV_communist	
		priority = 1500	
		trigger = {	
			coa_def_communist_flag_trigger = yes	
		}	
	}	
}

LVL = { #Livland
	flag_definition = {
		coa = LVL
		coa_with_overlord_canton = LVL
	}
}

GEN = { #Genoa
	flag_definition = {
		coa = GEN
		coa_with_overlord_canton = GEN
	}
}

SAV = { #Savoy
	flag_definition = {
		coa = SAV
		coa_with_overlord_canton = SAV
	}
}

LOM = { #Milan
	flag_definition = {
		coa = LOM
		coa_with_overlord_canton = LOM
	}
	flag_definition = {
		coa = LOM_absolute_monarchy
		coa_with_overlord_canton = LOM_absolute_monarchy
		priority = 10
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
}

ARI = { #Aragon-Italy
	flag_definition = {
		coa = ARI
		coa_with_overlord_canton = ARI
	}
	flag_definition = {
		coa = ARI_monarchy
		coa_with_overlord_canton = ARI_monarchy
		priority = 10
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ARI_republic
		coa_with_overlord_canton = ARI_republic
		priority = 20
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

CHA = { #Champa
	flag_definition = {
		coa = CHA
		coa_with_overlord_canton = CHA
	}
}

LEW = { #Leeuwin
	flag_definition = {
		coa = LEW
		coa_with_overlord_canton = LEW
	}
}

OPS = { #Opstalia
	flag_definition = {
		coa = OPS
		coa_with_overlord_canton = OPS
	}
}

NFL = { #Nuweflander
	flag_definition = {
		coa = NFL
		coa_with_overlord_canton = NFL
	}
}

BTV = { #Batavia
	flag_definition = {
		coa = BTV
		coa_with_overlord_canton = BTV
	}
}

VRY = { #Vryland
	flag_definition = {
		coa = VRY
		coa_with_overlord_canton = VRY
	}
}

PLM = { #Palembang
	flag_definition = {
		coa = PLM
		coa_with_overlord_canton = PLM
	}
}

CEL = { #Celebes
	flag_definition = {
		coa = CEL
		coa_with_overlord_canton = CEL
	}
}

MKS = { #Makassar
	flag_definition = {
		coa = MKS
		coa_with_overlord_canton = MKS
	}
	flag_definition = {
		coa = MKS_republic
		coa_with_overlord_canton = MKS_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

ZSA = { #Zhusha	
	flag_definition = {	
		coa = ZSA	
		subject_canton = ZSA	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ZSA_subject	
		priority = 1	
	}	
	flag_definition = {	
		coa = ZSA_monarchy	
		subject_canton = ZSA_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ZSA_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = ZSA_republic	
		subject_canton = ZSA_republic	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ZSA_subject	
		priority = 20	
		trigger = {	
			coa_def_republic_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = ZSA_communist	
		subject_canton = ZSA_communist	
		priority = 1500	
		trigger = {	
			coa_def_communist_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = ZSA_fascist	
		subject_canton = ZSA_fascist	
		priority = 1500	
		trigger = {	
			coa_def_fascist_flag_trigger = yes	
		}	
	}	
}	

MJN = { #Mianjin	
	flag_definition = {	
		coa = MJN	
		subject_canton = MJN	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = MJN_subject	
		priority = 1	
	}	
	flag_definition = {	
		coa = MJN_monarchy	
		subject_canton = MJN_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = MJN_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = MJN_republic	
		subject_canton = MJN_republic	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = MJN_subject	
		priority = 20	
		trigger = {	
			coa_def_republic_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = MJN_communist	
		subject_canton = MJN_communist	
		priority = 1500	
		trigger = {	
			coa_def_communist_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = MJN_fascist	
		subject_canton = MJN_fascist	
		priority = 1500	
		trigger = {	
			coa_def_fascist_flag_trigger = yes	
		}	
	}	
}	

YLO = { #Yaluo	
	flag_definition = {	
		coa = YLO	
		subject_canton = YLO	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = YLO_subject	
		priority = 1	
	}	
	flag_definition = {	
		coa = YLO_monarchy	
		subject_canton = YLO_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = YLO_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = YLO_republic	
		subject_canton = YLO_republic	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = YLO_subject	
		priority = 20	
		trigger = {	
			coa_def_republic_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = YLO_communist	
		subject_canton = YLO_communist	
		priority = 1500	
		trigger = {	
			coa_def_communist_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = YLO_fascist	
		subject_canton = YLO_fascist	
		priority = 1500	
		trigger = {	
			coa_def_fascist_flag_trigger = yes	
		}	
	}	
}

ZHR = { #Zhourao
	flag_definition = {
		coa = ZHR
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ZHR_subject	
		priority = 1	
	}	
	flag_definition = {	
		coa = ZHR_monarchy	
		subject_canton = ZHR_monarchy	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ZHR_subject	
		priority = 20	
		trigger = { 	
			coa_def_monarchy_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = ZHR_republic	
		subject_canton = ZHR_republic	
		allow_overlord_canton = yes		
		coa_with_overlord_canton = ZHR_subject	
		priority = 20	
		trigger = {	
			coa_def_republic_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = ZHR_communist	
		subject_canton = ZHR_communist	
		priority = 1500	
		trigger = {	
			coa_def_communist_flag_trigger = yes	
		}	
	}	
	flag_definition = {	
		coa = ZHR_fascist	
		subject_canton = ZHR_fascist	
		priority = 1500	
		trigger = {	
			coa_def_fascist_flag_trigger = yes	
		}	
	}
}

MDU = { #Madurai
	flag_definition = {
		coa = MDU
		coa_with_overlord_canton = MDU
	}
}

VIJ = { #Vijayanagar
	flag_definition = {
		coa = VIJ
		coa_with_overlord_canton = VIJ
	}
	flag_definition = {
		coa = VIJ_republic
		coa_with_overlord_canton = VIJ_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

ADW = { #Adamawa
	flag_definition = {
		coa = ADW
		coa_with_overlord_canton = ADW
	}
	flag_definition = {
		coa = ADW_republic
		coa_with_overlord_canton = ADW_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

ILO = { #Ilorin
	flag_definition = {
		coa = ILO
		coa_with_overlord_canton = ILO
	}
	flag_definition = {
		coa = ILO_republic
		coa_with_overlord_canton = ILO_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

KNO = { #Kano
	flag_definition = {
		coa = KNO
		coa_with_overlord_canton = KNO
	}
}

RHI = { #Rhineland
	flag_definition = {
		coa = RHI
		coa_with_overlord_canton = RHI
	}
	flag_definition = {
		coa = RHI_republic
		coa_with_overlord_canton = RHI_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

SUG = { #Sugbo
	flag_definition = {
		coa = SUG
		coa_with_overlord_canton = SUG
	}
	flag_definition = {
		coa = PHI
		coa_with_overlord_canton = PHI
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

AZB = { # Azerbaijan
	flag_definition = {
		coa = AZB
		subject_canton = AZB
		priority = 1
	}
	flag_definition = {
		coa = AZB_safavid
		subject_canton = AZB_safavid
		priority = 10
		trigger = {
			coa_def_undemocratic_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = AZB_dictatorship
		subject_canton = AZB_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = AZB_communist
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}		
}

TEH = { # Tehran
	flag_definition = {
		coa = PER
		subject_canton = PER
		allow_overlord_canton = yes	
		coa_with_overlord_canton = PER_subject			
		priority = 1
	}
	flag_definition = {
		coa = PER_absolute_monarchy
		subject_canton = PER_absolute_monarchy
		allow_overlord_canton = yes	
		coa_with_overlord_canton = PER_subject			
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = PER_republic
		subject_canton = PER_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = PER_dictatorship
		subject_canton = PER_dictatorship
		priority = 20
		trigger = {
			coa_def_dictatorship_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = PER_theocracy
		subject_canton = PER_theocracy
		priority = 20
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = PER_fascist
		subject_canton = PER_fascist
		priority = 1500
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = PER_subject_GBR
		allow_overlord_canton = yes		
		priority = 50
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}	
}

SHZ = { # Shiraz
	flag_definition = {
		coa = SHZ
		subject_canton = SHZ
		priority = 1
	}
	flag_definition = {
		coa = SHZ_absolute_monarchy
		subject_canton = SHZ_absolute_monarchy		
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
}

ASK = { # Astrakhan
	flag_definition = {
		coa = ASK
		subject_canton = ASK
		priority = 1
	}
	flag_definition = {
		coa = ASK_republic
		subject_canton = ASK_republic
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}	
}

GLD = { # Geledi
	flag_definition = {
		coa = GLD
		subject_canton = GLD
		priority = 1
	}
	flag_definition = {
		coa = GLD_republic
		subject_canton = GLD_republic
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = GLD_communist
		subject_canton = GLD_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = GLD_fascist
		subject_canton = GLD_fascist
		priority = 1500
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
}

ARY = { #Aryanam
	flag_definition = {
		coa = ARY
		coa_with_overlord_canton = ARY
	}
}

HLR = { #Holy Roman Empire
	flag_definition = {
		coa = HLR
		subject_canton = HLR
		priority = 1
	}
	flag_definition = {
		coa = HLR_republic
		subject_canton = HLR_republic
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = HLR_communist
		subject_canton = HLR_communist
		priority = 1500
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
}

QUI = { #QUITO
	flag_definition = {
		coa = QUI
		coa_with_overlord_canton = QUI
	}
	flag_definition = {
		coa = QUI_viceroy
		subject_canton = QUI_viceroy
		priority = 1000
		trigger = {
			exists = c:QUI
			OR = {
				c:SPA = {
					has_diplomatic_pact = {
						who = c:QUI
						type = puppet
						is_initiator = yes
					}
				}
				c:SPA = {
					has_diplomatic_pact = {
						who = c:QUI
						type = dominion
						is_initiator = yes
					}
				}
			}
		}
	}
	flag_definition = {
		coa = QUI_quito
		subject_canton = QUI_quito
		priority = 1000
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}
}

GRA = { #GRANADA
	flag_definition = {
		coa = GRA
		coa_with_overlord_canton = GRA
	}
	flag_definition = {
		coa = GRA_viceroy #DVG
		subject_canton = GRA_viceroy #DVG
		priority = 1000
		trigger = {
			exists = c:GRA
			OR = {
				c:SPA = {
					has_diplomatic_pact = {
						who = c:GRA
						type = puppet
						is_initiator = yes
					}
				}
				c:SPA = {
					has_diplomatic_pact = {
						who = c:GRA
						type = dominion
						is_initiator = yes
					}
				}
			}
		}
	}
}

LUS = { #GRANADA
	flag_definition = {
		coa = LUS
		coa_with_overlord_canton = LUS
	}
	flag_definition = {
		coa = LUS_viceroy #DVG
		subject_canton = LUS_viceroy #DVG
		priority = 1000
		trigger = {
			exists = c:GRA
			OR = {
				c:SPA = {
					has_diplomatic_pact = {
						who = c:GRA
						type = puppet
						is_initiator = yes
					}
				}
				c:SPA = {
					has_diplomatic_pact = {
						who = c:GRA
						type = dominion
						is_initiator = yes
					}
				}
			}
		}
	}
}

BSG = { #Begluk Bačka
	flag_definition = {
		coa = BSG
		coa_with_overlord_canton = BSG
	}
	flag_definition = {
		coa = BSG_theocracy
		subject_canton = BSG_theocracy
		priority = 20
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
}

SCO = { # Scotland
	flag_definition = {
		coa = SCO
		subject_canton = SCO
		priority = 1
	}
	flag_definition = {
		coa = SCO_scandinavia
		allow_overlord_canton = no		
		priority = 50
		trigger = { 
			coa_def_scandinavian_subject_trigger = yes
		}
	}
	flag_definition = {
		coa = SCO_theocracy
		subject_canton = SCO_theocracy
		priority = 10
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = SCO_coa
		priority = 10
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = SCO_military
		subject_canton = SCO
		priority = 20
		trigger = { 
			coa_def_military_junta_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = SCO_fascist
		subject_canton = SCO_fascist
		priority = 10
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = SCO_military
		allow_overlord_canton = no	
		priority = 50
		trigger = { 
			coa_def_british_ensign_trigger = yes
		}
	}	
}

CCS = {
	flag_definition = {
		coa = TWT
		coa_with_overlord_canton = TWT
	}
}

NVZ = { #Nouvelle Zealande
	flag_definition = {
		coa = NVZ
		coa_with_overlord_canton = NVZ
	}
	flag_definition = {
		coa = NVZ_republic
		coa_with_overlord_canton = NVZ_republic
		priority = 10
		trigger = {
			coa_def_republic_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = NVZ_burgundy
		subject_canton = NVZ_burgundy
		priority = 1000
		trigger = {
			exists = c:NVZ
			OR = {
				AND = {
					exists = c:BRG
					c:BRG = {
						has_diplomatic_pact = {
							who = c:NVZ
							type = puppet
							is_initiator = yes
						}
					}
				}
				AND = {
					exists = c:BRG
					c:BRG = {
						has_diplomatic_pact = {
							who = c:NVZ
							type = dominion
							is_initiator = yes
						}
					}
				}
			}
		}
	}
}

DON = {
	flag_definition = {
		coa = DON
		coa_with_overlord_canton = DON
	}
	flag_definition = {
		coa = DON_republic
		subject_canton = DON_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

AKH = {
	flag_definition = {
		coa = AKH
		coa_with_overlord_canton = AKH
	}
	flag_definition = {
		coa = AKH_republic
		subject_canton = AKH_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

CUI = {
	flag_definition = {
		coa = CUI
		coa_with_overlord_canton = CUI
	}
}

VOR = {
	flag_definition = {
		coa = VOR
		coa_with_overlord_canton = VOR
	}
	flag_definition = {
		coa = VOR_republic
		subject_canton = VOR_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

KHK = {
	flag_definition = {
		coa = KHK
		coa_with_overlord_canton = KHK
	}
	flag_definition = {
		coa = KHK_republic
		subject_canton = KHK_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

KIE = {
	flag_definition = {
		coa = KIE
		coa_with_overlord_canton = KIE
	}
	flag_definition = {
		coa = KIE_republic
		subject_canton = KIE_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

ZAZ = {
	flag_definition = {
		coa = ZAZ
		coa_with_overlord_canton = ZAZ
	}
	flag_definition = {
		coa = ZAZ_republic
		subject_canton = ZAZ_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

CSK = {
	flag_definition = {
		coa = CSK
		coa_with_overlord_canton = CSK
	}
	flag_definition = {
		coa = CSK_monarchy
		subject_canton = CSK_monarchy
		priority = 10
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
}

TAR = { # Tatarstan
	flag_definition = {
		coa = TAR
		coa_with_overlord_canton = TAR
	}
	flag_definition = {
		coa = TAR_monarchy
		subject_canton = TAR_monarchy
		priority = 10
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = TAR_republic
		subject_canton = TAR_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

UBT = {
	flag_definition = {
		coa = UBT
		coa_with_overlord_canton = UBT
	}
}

S1C = { #Sicily
	flag_definition = {
		coa = S1C
		coa_with_overlord_canton = S1C
	}
	flag_definition = {
		coa = S1C_subject
		subject_canton = S1C_subject
		priority = 1000
		trigger = {
			exists = c:S1C
			OR = {
				c:ARN = {
					has_diplomatic_pact = {
						who = c:S1C
						type = puppet
						is_initiator = yes
					}
				}
				c:ARN = {
					has_diplomatic_pact = {
						who = c:S1C
						type = dominion
						is_initiator = yes
					}
				}
			}
		}
	}
}

NAP = { #Naples
	flag_definition = {
		coa = NAP
		coa_with_overlord_canton = NAP
	}
	flag_definition = {
		coa = NAP_ara_subject
		subject_canton = NAP_ara_subject
		priority = 1000
		trigger = {
			exists = c:NAP
			OR = {
				c:ARN = {
					has_diplomatic_pact = {
						who = c:NAP
						type = puppet
						is_initiator = yes
					}
				}
				c:ARN = {
					has_diplomatic_pact = {
						who = c:NAP
						type = dominion
						is_initiator = yes
					}
				}
			}
		}
	}
}

RAG = { #Ragusa
	flag_definition = {
		coa = RAG
		coa_with_overlord_canton = RAG
	}
	flag_definition = {
		coa = RAG_war
		subject_canton = RAG_war
		priority = 2
		trigger = { 
			coa_def_war_trigger = yes
		}
	}
	flag_definition = {
		coa = RAG_fascist
		subject_canton = RAG_fascist
		priority = 10
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = RAG_monarchy
		subject_canton = RAG 
		priority = 20
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = RAG_communist
		subject_canton = RAG 
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}	
	flag_definition = {
		coa = RAG_free_state
		subject_canton = RAG 
		priority = 1600
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_council_republic
				has_law = law_type:law_anarchy
			}
		}
	}
}

TRT = { #Trent
	flag_definition = {
		coa = TRT
		coa_with_overlord_canton = TRT
	}
	flag_definition = {
		coa = TRT_theocracy
		subject_canton = TRT_theocracy
		priority = 10
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
}

ITC = { #Italian Confederation
	flag_definition = {
		coa = ITC
		coa_with_overlord_canton = ITC
	}
	flag_definition = {
		coa = ITC_monarchy
		subject_canton = ITC_monarchy
		priority = 10
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ITC_theocracy
		subject_canton = ITC_theocracy
		priority = 10
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}
	flag_definition = { #FIX
		coa = ITC_republican
		subject_canton = ITC_republican
		priority = 10
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_presidential_republic
			}
		}
	}
	flag_definition = { #FIX
		coa = ITC_confederacy_coat
		subject_canton = ITC_confederacy_coat
		priority = 10
		trigger = {
			exists = scope:actor
			scope:actor = {
				has_law = law_type:law_parliamentary_republic
			}
		}
	}
	flag_definition = {
		coa = ITC_fascist
		subject_canton = ITC_fascist
		priority = 10
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ITC_communist
		subject_canton = ITC_communist
		priority = 10
		trigger = {
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = ITC_war
		subject_canton = ITC_war
		priority = 100
		trigger = { 
			coa_def_war_trigger = yes
		}
	}		
}

COP = { #Corsica-Piedmont
	flag_definition = {
		coa = COP
		coa_with_overlord_canton = COP
	}
	flag_definition = {
		coa = COP_fascist
		subject_canton = COP_fascist
		priority = 10
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = COP_monarchy
		subject_canton = COP_monarchy 
		priority = 20
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = COP_communist
		subject_canton = COP_communist 
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = COP_theocracy
		subject_canton = COP_theocracy
		priority = 10
		trigger = { 
			coa_def_theocracy_flag_trigger = yes
		}
	}	
}


AGR = { #Augsburg
	flag_definition = {
		coa = AGR
		subject_canton = AGR
		priority = 1
	}
	flag_definition = {
		coa = AGR_republic
		subject_canton = AGR_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

CFR = { #Rhenish Union
	flag_definition = {
		coa = CFR
		coa_with_overlord_canton = CFR
	}
	flag_definition = {
		coa = CFR_monarchy
		subject_canton = CFR_monarchy 
		priority = 20
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = CFR_fascist
		subject_canton = CFR_fascist
		priority = 10
		trigger = { 
			coa_def_fascist_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = CFR_communist
		subject_canton = CFR_communist 
		priority = 1500
		trigger = { 
			coa_def_communist_flag_trigger = yes
		}
	}
}

THU = { #Thuringia
	flag_definition = {
		coa = THU
		coa_with_overlord_canton = THU
	}
	flag_definition = {
		coa = THU_absolute_monarchy
		subject_canton = THU_absolute_monarchy 
		priority = 20
		trigger = { 
			coa_def_absolute_monarchy_flag_trigger = yes
		}
	}
	flag_definition = {
		coa = THU_republic
		subject_canton = THU_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}

OSN = { #Osnabruck
	flag_definition = {
		coa = OSN
		coa_with_overlord_canton = OSN
	}
	flag_definition = {
		coa = OSN_republic
		subject_canton = OSN_republic
		priority = 10
		trigger = { 
			coa_def_republic_flag_trigger = yes
		}
	}
}


TRC = {
	flag_definition = {
		coa = TRC
		coa_with_overlord_canton = TRC
	}
	flag_definition = {
		coa = TRC_monarchy
		subject_canton = TRC_monarchy
		priority = 10
		trigger = { 
			coa_def_monarchy_flag_trigger = yes
		}
	}
}